/*
 * @Author: 陈明烽
 * @FilePath: \evdata-hydrogen-umi\src\commonServe\Operate\index.ts
 * @Description:运营管理
 */
import {
  /**充装记录*/
  OPE_FILL_RECORD_GET_FILL_RECORD_DETAIL,
  OPE_FILL_RECORD_GET_FILL_RECORD_LIST,
  OPE_FILL_RECORD_RECORD_LIST_EXPORT,
  /**来料管理 */
  OPE_INCOME_MATERIAL_RECORD_FIND_BY_ID,
  OPE_INCOME_MATERIAL_RECORD_DETAIL,
  OPE_INCOME_MATERIAL_RECORD_LIST,
  OPE_INCOME_MATERIAL_RECORD_EXPORT,
  /**加氢记录管理 */
  OPE_HYD_RECORD_DETAIL,
  OPE_HYD_RECORD_LIST,
  OPE_HYD_RECORD_EXPORT,
  /**巡检任务记录 */
  CHECK_TASK_DETAIL,
  CHECK_TASK_LIST,
  CHECK_TASK_EXPORT,
  /**巡检计划 */
  CHECK_PLAN_DETAIL,
  CHECK_PLAN_LIST,
  CHECK_PLAN_EXPORT,
  CHECK_PLAN_UPDATE_BY_TYPE,
  CHECK_PLAN_SAVE,
  /**加氢站设备 */
  EQUIP_INFO_DETAIL,
  EQUIP_INFO_LIST,
  EQUIP_INFO_EXPORT,
  MONITOR_FAULT_LIST,
  MONITOR_LIST,
  EQUIP_INFO_SAVE,
  EQUIP_INFO_UPDATE,
  QUERY_EQUIP_INFO_LIST,
  EQUIP_INFO_DELETE,
  /**设备故障 */
  EQUIP_FAULT_INFO_DELETE,
  EQUIP_FAULT_INFO_DETAIL,
  EQUIP_FAULT_INFO_LIST,
  EQUIP_FAULT_INFO_REPAIR_DO,
  EQUIP_FAULT_INFO_SAVE,
  EQUIP_FAULT_INFO_UPDATE,

  /**安全附件清单 */
  EQUIP_ACCESSORY_INFO_EXPORT,
  EQUIP_ACCESSORY_INFO_DETAIL,
  EQUIP_ACCESSORY_INFO_LIST,
  EQUIP_ACCESSORY_INFO_RECORD_LIST,
  EQUIP_ACCESSORY_INFO_RECORD_SAVE,
  /** PM详细标准*/
  EQUIP_PM_INFO_DETAIL,
  EQUIP_PM_INFO_MAINTAIN_INFO_LIST,
  EQUIP_PM_INFO_LIST,
  EQUIP_PM_INFO_DELETE,
  EQUIP_PM_INFO_EXPORT,
  EQUIP_PM_INFO_SAVE,
  EQUIP_PM_INFO_DATE_SAVE,
  EQUIP_PM_INFO_DELETE_BY_ID,
} from './api';

import { loadingHttps, https } from '@/utils/https';

/**
 * @description: 充装记录-列表
 * @param {Params} data
 * @return {*}
 */
export const post_opeFillRecord_findPage = (data: Params) => {
  return https.post(OPE_FILL_RECORD_GET_FILL_RECORD_LIST, {
    data,
  });
};

/**
 * @description: 充装记录-详情
 * @param {Params} data
 * @return {*}
 */
export const get_opeFillRecord_findById = (query: Params) => {
  return https.get(OPE_FILL_RECORD_GET_FILL_RECORD_DETAIL, {
    params: query,
  });
};

/**
 * @description: 充装记录-导出
 * @param {Params} data
 * @return {*}
 */
export const post_opeFillRecord_export = (data: Params) => {
  return loadingHttps.post(OPE_FILL_RECORD_RECORD_LIST_EXPORT, {
    data,
  });
};

/**
 * @description: 来料管理-列表
 * @param {Params} data
 * @return {*}
 */
export const post_opeIncomeMaterialRecord_findPage = (data: Params) => {
  return https.post(OPE_INCOME_MATERIAL_RECORD_LIST, {
    data,
  });
};

/**
 * @description: 来料管理-详情
 * @param {Params} data
 * @return {*}
 */
export const get_opeIncomeMaterialRecord_findById = (query: Params) => {
  return https.get(OPE_INCOME_MATERIAL_RECORD_DETAIL, {
    params: query,
  });
};

/**
 * @description: 来料管理-导出
 * @param {Params} data
 * @return {*}
 */
export const post_opeIncomeMaterialRecord_export = (data: Params) => {
  return loadingHttps.post(OPE_INCOME_MATERIAL_RECORD_EXPORT, {
    data,
  });
};

/**
 * @description: 加氢记录管理-列表
 * @param {Params} data
 * @return {*}
 */
export const post_opeHydRecord_findPage = (data: Params) => {
  return https.post(OPE_HYD_RECORD_LIST, {
    data,
  });
};

/**
 * @description: 加氢记录管理-详情
 * @param {Params} data
 * @return {*}
 */
export const get_opeHydRecord_findById = (query: Params) => {
  return https.get(OPE_HYD_RECORD_DETAIL, {
    params: query,
  });
};

/**
 * @description: 加氢记录管理-导出
 * @param {Params} data
 * @return {*}
 */
export const post_opeHydRecord_export = (data: Params) => {
  return loadingHttps.post(OPE_HYD_RECORD_EXPORT, {
    data,
  });
};

/**
 * @description: 巡检任务记录-列表
 * @param {Params} data
 * @return {*}
 */
export const post_checkTask_findPage = (data: Params) => {
  return https.post(CHECK_TASK_LIST, {
    data,
  });
};

/**
 * @description: 巡检任务记录-详情
 * @param {Params} data
 * @return {*}
 */
export const get_checkTask_findById = (query: Params) => {
  return https.get(CHECK_TASK_DETAIL, {
    params: query,
  });
};

/**
 * @description: 巡检任务记录-导出
 * @param {Params} data
 * @return {*}
 */
export const post_checkTask_export = (data: Params) => {
  return loadingHttps.post(CHECK_TASK_EXPORT, {
    data,
  });
};

/**
 * @description: 巡检计划-列表
 * @param {Params} data
 * @return {*}
 */
export const post_checkPlan_findPage = (data: Params) => {
  return https.post(CHECK_PLAN_LIST, {
    data,
  });
};

/**
 * @description: 巡检计划-详情
 * @param {Params} data
 * @return {*}
 */
export const get_checkPlan_findById = (query: Params) => {
  return https.get(CHECK_PLAN_DETAIL, {
    params: query,
  });
};

/**
 * @description: 巡检计划-导出
 * @param {Params} data
 * @return {*}
 */
export const post_checkPlan_export = (data: Params) => {
  return loadingHttps.post(CHECK_PLAN_EXPORT, {
    data,
  });
};

/**
 * @description: 巡检计划-更新状态
 * @param {Params} data
 * @return {*}
 */
export const post_checkPlan_updateByType = (data: Params) => {
  return https.post(CHECK_PLAN_UPDATE_BY_TYPE, {
    data,
  });
};
/**
 * @description: 巡检计划-保存
 * @param {Params} data
 * @return {*}
 */
export const post_checkPlan_save = (data: Params) => {
  return https.post(CHECK_PLAN_SAVE, {
    data,
  });
};

/**
 * @description: 设备管理详情
 * @param {Params} data
 * @return {*}
 */
export const get_equip_info_detail = (params: Params) => {
  return https.get(EQUIP_INFO_DETAIL, {
    params,
  });
};
/**
 * @description: 设备管理列表
 * @param {Params} data
 * @return {*}
 */
export const post_equip_info_list = (data: Params) => {
  return https.post(EQUIP_INFO_LIST, {
    data,
  });
};
/**
 * @description: 系统监控-设备基本信息
 * @param {Params} data
 * @return {*}
 */
export const get_monitor_equip_info = (params: Params) => {
  return https.get(EQUIP_INFO_EXPORT, {
    params,
  });
};
/**
 * @description: 系统监控-详情-设备故障列表
 * @param {Params} data
 * @return {*}
 */
export const get_monitor_fault_list = (params: Params) => {
  return https.get(MONITOR_FAULT_LIST, {
    params,
  });
};
/**
 * @description: 系统监控-设备监控
 * @param {Params} data
 * @return {*}
 */
export const post_monitor_list = (data: Params) => {
  return https.post(MONITOR_LIST, {
    data,
  });
};
/**
 * @description: 根据设备名称或编号查询
 * @param {Params} data
 * @return {*}
 */
export const post_query_equip_info_list = (data: Params) => {
  return https.post(QUERY_EQUIP_INFO_LIST, {
    data,
  });
};
/**
 * @description: 保存加氢站设备
 * @param {Params} data
 * @return {*}
 */
export const post_equipInfo_save = (data: Params) => {
  return https.post(EQUIP_INFO_SAVE, {
    data,
  });
};
/**
 * @description: 更新加氢站设备
 * @param {Params} data
 * @return {*}
 */
export const post_equipInfo_update = (data: Params) => {
  return https.post(EQUIP_INFO_UPDATE, {
    data,
  });
};
/**
 * @description: 删除加氢站设备表
 * @param {Params} data
 * @return {*}
 */
export const get_equipInfo_delete = (params: Params) => {
  return https.get(EQUIP_INFO_DELETE, {
    params,
  });
};
// 设备故障
/**
 * @description: 设备故障-删除
 * @param {Params} data
 * @return {*}
 */
export const get_equip_fault_info_delete = (params: Params) => {
  return https.get(EQUIP_FAULT_INFO_DELETE, {
    params,
  });
};
// 设备故障
/**
 * @description: 设备故障-详情
 * @param {Params} data
 * @return {*}
 */
export const get_equip_fault_info_detial = (params: Params) => {
  return https.get(EQUIP_FAULT_INFO_DETAIL, {
    params,
  });
};
/**
 * @description: 设备故障-列表
 * @param {Params} data
 * @return {*}
 */
export const post_equip_fault_info_list = (data: Params) => {
  return https.post(EQUIP_FAULT_INFO_LIST, {
    data,
  });
};
/**
 * @description: 设备故障-修复故障
 * @param {Params} data
 * @return {*}
 */
export const post_equip_fault_info_repairDo = (data: Params) => {
  return https.post(EQUIP_FAULT_INFO_REPAIR_DO, {
    data,
  });
};
/**
 * @description: 设备故障-保存
 * @param {Params} data
 * @return {*}
 */
export const post_equip_fault_info_save = (data: Params) => {
  return https.post(EQUIP_FAULT_INFO_SAVE, {
    data,
  });
};
/**
 * @description: 设备故障-更新
 * @param {Params} data
 * @return {*}
 */
export const post_equip_fault_info_update = (data: Params) => {
  return https.post(EQUIP_FAULT_INFO_UPDATE, {
    data,
  });
};

/**
 * @description: 安全附件清单-详情
 * @param {Params} data
 * @return {*}
 */
export const get_equip_accessory_info_detail = (params: Params) => {
  return https.get(EQUIP_ACCESSORY_INFO_DETAIL, {
    params,
  });
};
/**
 * @description: 安全附件清单-导出
 * @param {Params} data
 * @return {*}
 */
export const post_equip_accessory_info_export = (data: Params) => {
  return loadingHttps.post(EQUIP_ACCESSORY_INFO_EXPORT, {
    data,
  });
};
/**
 * @description: 安全附件清单-列表
 * @param {Params} data
 * @return {*}
 */
export const post_equip_accessory_info_list = (data: Params) => {
  return https.post(EQUIP_ACCESSORY_INFO_LIST, {
    data,
  });
};
/**
 * @description: 维护日期-保存
 * @param {Params} data
 * @return {*}
 */
export const post_equip_accessory_info_record_save = (data: Params) => {
  return https.post(EQUIP_ACCESSORY_INFO_RECORD_SAVE, {
    data,
  });
};

/**
 * @description: 安全附件清单-历史维护日期
 * @param {Params} data
 * @return {*}
 */
export const get_equip_accessory_info_record_list = (params: Params) => {
  return https.get(EQUIP_ACCESSORY_INFO_RECORD_LIST, {
    params,
  });
};

/**
 * @description: PM详细标准-导出
 * @param {Params} data
 * @return {*}
 */
export const post_equip_pm_info_list_export = (data: Params) => {
  return loadingHttps.post(EQUIP_PM_INFO_EXPORT, {
    data,
  });
};

/**
 * @description: PM详细标准-详情
 * @param {Params} data
 * @return {*}
 */
export const get_equip_pm_info_detail = (params: Params) => {
  return https.get(EQUIP_PM_INFO_DETAIL, {
    params,
  });
};

/**
 * @description: PM详细标准-列表
 * @param {Params} data
 * @return {*}
 */
export const post_equip_pm_info_list = (data: Params) => {
  return https.post(EQUIP_PM_INFO_LIST, {
    data,
  });
};

/**
 * @description: PM详细标准-保存
 * @param {Params} data
 * @return {*}
 */
export const post_equip_pm_info_save = (data: Params) => {
  return https.post(EQUIP_PM_INFO_SAVE, {
    data,
  });
};
/**
 * @description: PM详细标准-选择维护日期更新
 * @param {Params} data
 * @return {*}
 */
export const get_maintain_date_save = (params: Params) => {
  return https.get(EQUIP_PM_INFO_DATE_SAVE, {
    params,
  });
};
/**
 * @description: PM详细标准-查看历史维护日期
 * @param {Params} data
 * @return {*}
 */
export const get_equip_pm_maintain_info_list = (params: Params) => {
  return https.get(EQUIP_PM_INFO_MAINTAIN_INFO_LIST, {
    params,
  });
};
/**
 * @description: PM详细标准-删除
 * @param {Params} data
 * @return {*}
 */
export const get_equip_pm_info_delete = (params: Params) => {
  return https.get(EQUIP_PM_INFO_DELETE, {
    params,
  });
};

/**
 * @description: PM详细标准-删除
 * @param {Params} data
 * @return {*}
 */
export const get_equip_pm_info_delete_by_id = (params: Params) => {
  return https.get(EQUIP_PM_INFO_DELETE_BY_ID, {
    params,
  });
};
